function delMenuDialog(
    {
        menuId,
        menuTitle = "",
        callback = Function()
    }
) {
    if (!menuId) {
        return $.toast("菜单ID不能为空");
    }

    const $dialogDom = $.dialog(
        menuTitle ? "是否确定删除菜单(" + menuTitle + ")" : "是否确定删除该菜单",
        {
            ok() {
                delMenu({
                    menuId: menuId
                }, res => {
                    if (res.Code !== 10000) {
                        return $.toast(res.Message);
                    }

                    $dialogDom.remove();
                    $.toast("删除成功");
                    callback();
                })
            }
        }
    )

    function delMenu(param, callback = Function()) {
        return $.sApi({
            data: param,
            url: "/api/Menu/delMenu",
        }, callback)
    }
}